﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Sharp.Domain.Model;
using Sharp.Infrastructure;

namespace Sharp.Domain.PlatformBoundedContext.UserModule.Aggregates
{
    public partial class UserLog : AggregateRoot, IUserLog
    {
        /// <summary>
        /// 用户日志
        /// </summary>
        public UserLog()
        {
            Event = "";
            Eventtime = DateTime.Now;
        }
        public UserLog(IUserLog log)
        {
            this.UserId = log.UserId;
            this.FullName = log.FullName;
            this.Content = log.Content;
            this.Event = log.Event;
            this.Eventtime = log.Eventtime;
            this.InternalSources = log.InternalSources;
            this.ExternalSources = log.ExternalSources;
        }
        /// <summary>
        /// 操作员Id
        /// </summary>
        public Guid UserId { get; set; }

        /// <summary>
        /// 操作员姓名
        /// </summary>
        public string FullName { get; set; }
        /// <summary>
        /// 操作内容的描述
        /// </summary>
        public string Content { get; set; }
        /// <summary>
        /// 事件
        /// </summary>
        /// <remarks>用作分类</remarks>
        public string Event { get; set; }
        /// <summary>
        /// 事件时间
        /// </summary>
        public DateTime Eventtime { get; set; }

        /// <summary>
        /// 内部来源
        /// </summary>
        public string InternalSources { get; set; }
         
        /// <summary>
        /// 外部来源
        /// </summary>
        /// <remarks>电脑名称、电脑Mac、手机识别码之类的东西</remarks>
        public string ExternalSources { get; set; }
    }
}
